<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/common/includes.jsp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html id="zzzzzz" xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>zzzzzz - Forgot password</title>
	<%@ include file="/WEB-INF/common/meta.jsp" %>
	<%@ include file="/WEB-INF/common/global_style.jsp" %>
	<%@ include file="/WEB-INF/common/global_script.jsp" %>
	<script type="text/javascript" src="${ctx}/res/js/forgot_password.js"></script>
</head>
<body>

<%@ include file="/WEB-INF/common/header.jsp" %>

<div class="wrapper-content">
	<div class="fp-wrap wrap">
		<div class="main-content ">
			<h1>Forgot your password?</h1>
			<p>Type your email address below to reset your password. <a href="${ctx}/help" target="_blank">Learn more</a>.</p>
			<form:form id="fp_form"  modelAttribute="resendPasswordVo" action="${ctx}/account/resend_password" method="post" class="forgot-password">
				<form:errors path="*" element="div" cssClass="msg-error"/>
				<div class="fieldset">
					<label for="fp_email" class="pbs">Email<span style="" class="error rfloat" id="fp_email_error_msg"></span></label>
					<form:input path="email" id="fp_email" maxlength="64" />
				</div>
				<div class="fieldset">
					<input type="submit" id="fp_submit" name="fp-submit" class="btn style1 large" value="Send reset instructions" /><span id="fp_submit_status" class="submit-status mlm mbs"><img src="${ctx}/res/images/common/spinner.gif" /></span>
				</div>
			</form:form>
		</div>
	</div>
</div>

<script type="text/javascript">

jq(document).ready(function() {
	
	var forgotPassword = new ForgotPassword({
		'j_fp_form' : jq("#fp_form"),
		'j_fp_email' : jq("#fp_email"),
		'j_fp_email_error_msg' : jq("#fp_email_error_msg"),
		'j_fp_submit' : jq("#fp_submit"),
		'j_fp_submit_status' : jq("#fp_submit_status"),
		'_email_check_url' : "${ctx}/users/is_email_existing"
	});
	
});

</script>

<%@ include file="/WEB-INF/common/footer.jsp" %>

</body>
</html>
